#include <bits/stdc++.h>
using namespace std;
#define PI 3.1415926
#define   SQUARE(x) ((x)*(x))
//double SQUARE(double x) { return x*x;}

int main()
{
	int x, y ;
	double x2;
	char c;
	scanf("%d",  &x);

	printf("%s", (1 == x || 3 == x || 5 == x) ? "NO" : "YES");

  return 0;
}
